<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>图表</title>
    <link rel="stylesheet" href="./css/reset.css" />
    <link rel="stylesheet" href="./css/style.css" />

    <style>
      .chart {
        width: 600px;
        margin: 50px auto;
      }
    </style>
  </head>
  <body>
    <div id="container" class="chart">
    </div>
    
    <script src="./js/g2plot.min.js"></script>
    <!-- <script src="./js/data-set.min.js"></script> -->
    <!-- <script src="./js/app.js"></script> -->
    <script>

var liquidPlot = new G2Plot.Liquid(document.getElementById('container'), {
  statistic: 'percent',
  width: 400,
  height: 400,
  min: 0,
  max: 10000,
  value: 17500,
  showValue: true,
  animate: false
});
liquidPlot.render();


setInterval(function(){
  liquidPlot.updateConfig({
  value: Math.random() * 10000 >>> 0,
  })
liquidPlot.render();

},5000)




// liquidPlot.changeData(8000)
    </script>
  </body>
</html>
